/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: happyiu
 * Date: 2021-11-20
 * Time: 0:14
 */
public class TestDemo {


    public static void main(String[] args) {
        MyListNode myListNode = new MyListNode();

        myListNode.addLast(1);
        myListNode.addLast(2);
        myListNode.addLast(3);
        myListNode.addLast(4);
        myListNode.addLast(5);

        myListNode.display();
        myListNode.addIndex(2,99);
        myListNode.display();

    }
}
